how to record execution time in python

40

how to record execution time in python -

import time

start = time.time()
print("hello")
end = time.time()
print(end - start)

Comments

Submit
0 Comments